package com.example.jetpacktest.lifecycle

import android.content.Intent
import androidx.lifecycle.LifecycleService
import com.example.jetpacktest.view.LifeCycleView

class LifecycleService : LifecycleService() {
    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        lifecycle?.addObserver(LifeCycleView(this))
        return super.onStartCommand(intent, flags, startId)
    }
}